package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 楼宇维护
 */
@Data
@TableName("building_maintain")
@Document(indexName = "building",type = "doc")
public class BuildingEntity {
   @Id
   @Field(type = FieldType.Integer)
   @TableId(type = IdType.AUTO)
   private Integer id;
   @Field(type = FieldType.Text)
   private String buildingname;//楼宇名称
   @Field(type = FieldType.Text)
   private String buildingcode;//楼宇代码
   @Field(type = FieldType.Text)
   private String principalname;//负责人姓名
   @Field(type = FieldType.Text)
   private String phone;//手机号
   @Field(type = FieldType.Text)
   private String floor;//楼层
   @Field(type = FieldType.Text)
   private String state;//状态
}
